﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{





    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("--------------------------------");
            Cat tom = new Cat();
            tom.cw();
            tom.Jao();
            Console.WriteLine("--------------------------------");
            Tiger mao = new Tiger();
            mao.cw();
            mao.Jao();
            Console.WriteLine("--------------------------------");
            Eagle e = new Eagle();
            e.cw();
            e.Jao();
            Console.WriteLine("--------------------------------");
            swallow s = new swallow();
            s.cw();
            s.Jao();
            Console.ReadKey();
        }
    }

    class Animal
    {
        public void Walk()
        {
            Console.WriteLine("我会走呀");
        }
        public void Eat()
        {
            Console.WriteLine("人送外号干饭王");
        }
        public void Sleep()
        {
            Console.WriteLine("我睡得不是觉是寂寞");
        }
        public virtual void Jao()
        {
            Console.WriteLine("别过来，我要叫人了，我要叫了，我真的要叫了");
        }
        public void Cw()
        {
            Walk(); Eat(); Sleep();

        }
    }
}
